﻿<%@ Control Language="C#" Inherits="System.Web.Mvc.ViewUserControl<MyMainSite.Models.BaseModel>" %>

<% // there isn't much point in going too dynamic here unless I intend to make this site into a CMS %>

<% if (Model.CurrentController.ToLower().Trim() == "blog")
   { %>
    <span class="menuItemSelected">Blog</span>
<% }
   else
   { %>
    <a class="menuItem" href="/blog/">Blog</a>
<% } %>

<% if (Model.CurrentController.ToLower().Trim() == "projects")
   { %>
    <span class="menuItemSelected">Projects</span>
<% }
   else
   { %>
    <a class="menuItem" href="/projects/">Projects</a>
<% } %>

<% if (Model.CurrentController.ToLower().Trim() == "cv")
   { %>
    <span class="menuItemSelected">CV</span>
<% }
   else
   { %>
    <a class="menuItem" href="/cv/">CV</a>
<% } %>